//
//  NCChatMoreCell.m
//  AGEmojiKeyboard
//
//  Created by LINAICAI on 2018/4/18.
//

#import "NCChatMoreCell.h"

@implementation NCChatMoreCell
- (UIImageView *)menuImage{
    if (!_menuImage) {
        _menuImage = [UIImageView new];
    }
    return _menuImage;
}
- (UILabel *)menuLabel{
    if (!_menuLabel) {
        _menuLabel = [UILabel new];
        _menuLabel.font = [UIFont systemFontOfSize:14];
        _menuLabel.textColor = [UIColor grayColor];
    }
    return _menuLabel;
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self.contentView addSubview:self.menuImage];
        [self.contentView addSubview:self.menuLabel];
        [self.menuImage mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self.contentView.mas_centerX);
            make.top.equalTo(self.contentView.mas_top).mas_offset(0);
            make.size.mas_equalTo(CGSizeMake(60, 60));
        }];
        [self.menuLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.menuImage.mas_bottom).mas_offset(8);
            make.centerX.equalTo(self.menuImage.mas_centerX);
        }];
    }
    return self;
}
@end
